home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / exec / funmul.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  456 b   |  26 lines

  1. /*
  2. \funcref{fun\_mul}{void fun\_mul ()}
  3.     {}
  4.     {}
  5.     {pop(), push()}
  6.     {}
  7.     {funmul.c}
  8.     {
  9.         This function pops two variables and pushes the product of the {\em
  10.         vu.intval} fields of these variables. The resulting pushed variable is
  11.         of type {\em e\_int}.
  12.     }
  13. */
  14.  
  15. #include "icm-exec.h"
  16.  
  17. void fun_mul ()
  18. {
  19.     VAR_
  20.         tmp;
  21.  
  22.     tmp.type = e_int;
  23.     tmp.vu.intval = pop().vu.intval * pop().vu.intval;
  24.     push (tmp);
  25. }
  26.